package com.voicechat.firstmet;

import android.content.Context;

import com.tencent.TIMMessage;
import com.tencent.TIMMessageListener;

import java.util.List;

/**
 * @ProjectName: FirstMet
 * @Package: com.voicechat.firstmet
 * @ClassName: IMChatMessageContext
 * @Description: java类作用描述
 * @Author: ljp
 * @CreateDate: 2018/11/12 15:45
 * @Version: 1.0
 */
public class IMChatMessageContext implements TIMMessageListener {

    private static IMChatMessageContext mRongCloudInstance;
    private final Context mContext;

    public IMChatMessageContext(Context mContext) {
        this.mContext = mContext;
        initListener();
    }
    /**
    * @method
    * @description 相关监听类
    * @date: 2018/11/12 15:47
    * @author: ljp
    * @return
    */
    private void initListener() {

    }

    /**
     * 初始化 RongCloud.
     *
     * @param context 上下文。
     */
    public static void init(Context context) {
        if (mRongCloudInstance == null) {
            synchronized (IMChatMessageContext.class) {
                if (mRongCloudInstance == null) {
                    mRongCloudInstance = new IMChatMessageContext(context);
                }
            }
        }
    }
    @Override
    public boolean onNewMessages(List<TIMMessage> list) {
        return false;
    }
}
